package com.muyu.danmo.domain;


import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 印刷出版对象 danmo_printing_message
 *
 * @author yangle
 * @date 2024-10-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoPrintingMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 店铺介绍
     */
    @Excel(name = "店铺介绍")
    private String introduction;

    /**
     * 开始营业时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "开始营业时间", width = 30, dateFormat = "yyyy-MM-dd")
    @Excel(name = "营业时间")
    private String startTime;

    private String sortOrder;

    /**
     * 结束营业时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "结束营业时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String endTime;

    /**
     * 店铺的联系方式
     */
    @Excel(name = "店铺的联系方式")
    private String contactInfo;

    /**
     * 省份
     */
    @Excel(name = "省份")
    private String province;

    /**
     * 市
     */
    @Excel(name = "市")
    private String citycode;

    /**
     * 县
     */
    @Excel(name = "县")
    private String countycode;

    /**
     * 店铺的地址
     */
    @Excel(name = "店铺的地址")
    private String address;

    /**
     * 店铺的电子邮箱（用于信息审核通过后接收通知）。
     */
    @Excel(name = "店铺的电子邮箱", readConverterExp = "用=于信息审核通过后接收通知")
    private String email;

    /**
     * 浏览量
     */
    @Excel(name = "浏览量")
    private Long views;

    /**
     * 审核状态（例如：0 待审核、1 审核通过、2 审核未通过）
     */
    @Excel(name = "审核状态", readConverterExp = "例=如：0,待=审核、1,审=核通过、2,审=核未通过")
    private Long status;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 点赞量
     */
    @Excel(name = "点赞量")
    private Long amountPraise;
    ;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String picture;

    /**
     * 是否点赞
     */
    @Excel(name = "是否点赞")
    private String isLike;

    /**
     * 是否收藏
     */
    @Excel(name = "是否收藏")
    private String isCollection;

    /**
     * 营业执照
     */
    private String businessLicense;

    /**
     * 身份证正面
     */
    private String frontOfIdCard;

    /**
     * 身份证反面
     */
    private String reverseSideOfIdCard;

    private Integer pageNum = 1;
    private Integer pageSize = 10;


    private String provinceName;
    private String cityName;
    private String countyName;

    /**
     * 印刷出版图片信息
     */
    private List<DanmoPrintingPicture> danmoPrintingPictureList;

    /**
     * 关联到印刷出版图片类型表的外键。
     */
    private List<DanmoPrintingTypeRelation> danmoPrintingTypeRelationList;


    /**
     * 印刷出版门头信息
     */
    private List<DanmoPrintingDoor> danmoPrintingDoorList;
    /**
     * 印刷出版内景信息
     */
    private List<DanmoPrintingInteriorPhotos> danmoPrintingInteriorPhotosList;
    /**
     * 印刷出版作品信息
     */
    private List<DanmoPrintingWorks> danmoPrintingWorksList;
    /**
     * 印刷出版类型信息
     */
    private List<DanmoPrintingType> danmoPrintingTypeList;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("title", getTitle()).append("introduction", getIntroduction()).append("startTime", getStartTime()).append("endTime", getEndTime()).append("contactInfo", getContactInfo()).append("province", getProvince()).append("citycode", getCitycode()).append("countycode", getCountycode()).append("address", getAddress()).append("email", getEmail()).append("views", getViews()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("remark", getRemark()).append("status", getStatus()).append("amountPraise", getAmountPraise()).append("userId", getUserId()).toString();
    }
}
